package ywpt.service.config;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.LinkmanType;

public interface LinkmanTypeService {

	public abstract LinkmanType getLinkmanTypeById(Long id);

	public abstract int getLinkmanTypeCountByCriteria(DetachedCriteria query);

	public abstract List<LinkmanType> getLinkmanTypes(
			DetachedCriteria query, int pageSize, int startIndex);

	public abstract String CreateTypeCode();

	public abstract void saveLinkmanType(LinkmanType linkmanType);

	public abstract void updateLinkmanType(LinkmanType linkmanType);

	public abstract void removeLinkmanType(Long id);

	public abstract List<LinkmanType> getLinkmanTypes();

	public abstract List<LinkmanType> getLinkmanTypes(DetachedCriteria query);
	
	public abstract List<LinkmanType> getLinkmanTypesByTypeName(String typeName, int start, int size);
	
	public abstract int getLinkmanTypesCountByName(String typeName);
}
